from flask import send_from_directory
from . import health_bp
import os

"""
health 接口和 index 接口配置

Copyright (C) chengpeng.hu. All Rights Reserved

@Author : chengpeng.hu
@Date : 2024
"""


@health_bp.route('/')
def index():
    return "success"


@health_bp.route('/health')
def health():
    return "success"


@health_bp.route('/favicon.ico')
def favicon():
    return send_from_directory(os.path.join(health_bp.root_path, 'static'), 'favicon.ico',
                               mimetype='image/vnd.microsoft.icon')
